package org.giovanolli.mumi.view.converter;

import javax.faces.convert.FacesConverter;

import org.giovanolli.mumi.entities.PaymentConceptType;

@FacesConverter(value = "paymentConceptTypeConverter")
public class PaymentConceptTypeConverter extends SelectItemsBaseConverter<PaymentConceptType> {
	@Override
	public String getAsString(Object value) {
		return ((PaymentConceptType) value).name();
	}

	@Override
	public String getItemLabel(PaymentConceptType object) {
		return object != null ? object.name() : null;
	}

	@Override
	public Object getItemValue(PaymentConceptType object) {
		return object;
	}

}